
/*
 * Copyright 2002-2021 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 *版权所有2002-2021原作者。
 *
 *根据Apache许可证2.0版许可（“许可证”）；
 *除非符合许可证的规定，否则您不得使用此文件。
 *您可以在以下网址获取许可证副本：
 *
 *https://www.apache.org/licenses/LICENSE-2.0
 *
 *除非适用法律要求或书面同意，软件
 *根据许可证进行的分发是在“按原样”的基础上进行的，
 *无任何明示或暗示的保证或条件。
 *有关管理权限的特定语言，请参阅许可证和
 *许可证下的限制。
 */

package org.springframework.scheduling.annotation;

import org.springframework.scheduling.config.ScheduledTaskRegistrar;

/**
 * Optional interface to be implemented by {@link
 * org.springframework.context.annotation.Configuration @Configuration} classes annotated
 * with {@link EnableScheduling @EnableScheduling}. Typically used for setting a specific
 * {@link org.springframework.scheduling.TaskScheduler TaskScheduler} bean to be used when
 * executing scheduled tasks or for registering scheduled tasks in a <em>programmatic</em>
 * fashion as opposed to the <em>declarative</em> approach of using the
 * {@link Scheduled @Scheduled} annotation. For example, this may be necessary
 * when implementing {@link org.springframework.scheduling.Trigger Trigger}-based
 * tasks, which are not supported by the {@code @Scheduled} annotation.
 *
 * <p>See {@link EnableScheduling @EnableScheduling} for detailed usage examples.
 *
 * @author Chris Beams
 * @since 3.1
 * @see EnableScheduling
 * @see ScheduledTaskRegistrar
 */
/**
 *由｛@link实现的可选接口
 *org.springframework.context.annation.Configuration@Configuration｝类注释
 *使用｛@link EnableScheduling@EnableSchedung｝。通常用于设置特定
 *｛@link org.springframework.scheduling.TaskScheduler TaskScheduler｝当
 *执行计划任务或在<em>程序中注册计划任务</em>
 *与使用
 *｛@link Scheduled@Scheduled｝注释。例如，这可能是必要的
 *实现｛@link org.springframework.scheduling.Trigger触发器｝时基于
 *任务，｛@code@Scheduled｝注释不支持这些任务。
 *
 *<p>有关详细用法示例，请参阅｛@link EnableScheduling@EnableSchedung｝。
 *
 *@作者Chris Beams
 *@自3.1起
 *@请参阅EnableScheduling
 *@见ScheduledTaskRegistrar
 */
@FunctionalInterface
public interface SchedulingConfigurer {

	/**
	 * Callback allowing a {@link org.springframework.scheduling.TaskScheduler
	 * TaskScheduler} and specific {@link org.springframework.scheduling.config.Task Task}
	 * instances to be registered against the given the {@link ScheduledTaskRegistrar}.
	 * @param taskRegistrar the registrar to be configured.
	 */
	/**
	 *允许｛@link org.springframework.scheduling.TaskScheduler的回调
	 *任务调度程序｝和特定的｛@link org.springframework.scheduling.config.Task任务｝
	 *要针对给定的｛@link ScheduledTaskRegistrar｝注册的实例。
	 *@param taskRegistrar要配置的注册器。
	 */
	void configureTasks(ScheduledTaskRegistrar taskRegistrar);

}
